<template>
    <div>
        <el-button v-hasPermi="[$button.batchbatchview || '']" style="padding: 2px" :size="'small'" type="primary"
            @click="props.tableItem.btnArray[0].handle(props.scope)" text>查看</el-button>
        <el-button v-hasPermi="[$button.batchbatchedit || '']" style="padding: 2px" :size="'small'" type="primary"
            v-if="props.scope.payFlag == 1 && scope.status == 2" @click="props.tableItem.btnArray[1].handle(props.scope)"
            text>修改</el-button>
        <el-button v-hasPermi="[$button.batchbatchpay || '']" style="padding: 2px" :size="'small'" type="primary"
            v-if="props.scope.payFlag == 0" @click="props.tableItem.btnArray[2].handle(props.scope)" text>缴费</el-button>
        <el-button v-hasPermi="[$button.batchbatchview || '']" style="padding: 2px" :size="'small'" type="primary"
            v-if="props.scope.payFlag == 1 && props.scope.status == 1"
            @click="props.tableItem.btnArray[3].handle(props.scope)" text>审核</el-button>
        <el-button v-hasPermi="[$button.batchbatchexport || '']" style="padding: 2px" :size="'small'" type="primary"
            @click="props.tableItem.btnArray[4].handle(props.scope)" text>导出</el-button>
        <el-button v-hasPermi="[$button.batchbatchremove || '']" style="padding: 2px" :size="'small'" type="danger"
            @click="props.tableItem.btnArray[5].handle(props.scope)" text>删除</el-button>
    </div>
</template>
<script setup>
import { onMounted, ref, reactive } from 'vue'
import $button from '@/button'
const dialogVisible = ref(false)
const props = defineProps({ scope: { default: function () { return [] } }, tableItem: { default: function () { return [] } } })
onMounted(() => {
    // console.log(props.tableItem, 'props')
})

</script>

<style></style>